package cn.afterturn.easypdf.pdf.handler;

import cn.afterturn.easypdf.pdf.entity.PdfExportParams;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.font.PDFont;

import java.io.IOException;

/**
 * 获取pdf字体
 */
public interface IPdfFontHandler {
    /**
     * 获取标题行字体
     *
     * @param doc
     * @param params
     * @return
     * @throws IOException
     */
    public PDFont getTitleFont(PDDocument doc, PdfExportParams params) throws IOException;

    /**
     * 获取内容字体
     *
     * @param doc
     * @param params
     * @return
     * @throws IOException
     */
    public PDFont getContentFont(PDDocument doc, PdfExportParams params) throws IOException;

    /**
     * 获取内容粗体字体
     *
     * @param doc
     * @param params
     * @return
     * @throws IOException
     */
    public PDFont getBoldContentFont(PDDocument doc, PdfExportParams params) throws IOException;
}
